﻿#include "GUISEASubSysSinglyCurvedPlateDialog.h"
#include "ui_GUISEASubSysPlateBaseDialog.h"

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"

#include "FITK_Component/FITKAcousticsModel/FITKAcousticsDiscModel.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsSEAModel.h"
#include "FITK_Component/FITKAcousticsModel/FITKAcousticsDiscNodeList.h"
#include "FITK_Component/FITKAcousticsModel/FITKSEASubSysShellCurved.h"

#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsPhysics.h"
#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsAbsPhysicsProp.h"

#include <QMessageBox>

namespace GUI {

    GUISEASubSysSinglyCurvedPlateDialog::GUISEASubSysSinglyCurvedPlateDialog(Acoustics::FITKSEASubSysSinglyCurvedShell* obj, Core::FITKActionOperator* oper, QWidget* parent /*= nullptr*/) : GUISEASubSysPlateBaseDialog(obj, oper, parent)
    {
        this->setWindowTitle(tr("Singly Curved Shell"));
        //初始化
        initComponent();
        initData();
    }

    GUISEASubSysSinglyCurvedPlateDialog::~GUISEASubSysSinglyCurvedPlateDialog()
    {
        //释放数据
    }

    void GUISEASubSysSinglyCurvedPlateDialog::initData()
    {
        this->initShellData();
    }

    QString GUISEASubSysSinglyCurvedPlateDialog::getCreateDataObjName()
    {
        return "Singly Curved Shell";
    }

    void GUISEASubSysSinglyCurvedPlateDialog::initComponent()
    {
        //初始化组件
        _ui->label_image->setPixmap(QPixmap(":/icons/SinglyCurvedPlate.png"));
        _ui->label_GeoImage->setPixmap(QPixmap(":/icons/SinglyCurvedPlateModel.png"));
        _ui->widget_DoubleGeo->setVisible(false);
    }
}
